package com.assessment.servermanager.mapper;

import com.assessment.servermanager.entity.TbSign;
import com.assessment.servermanager.entity.vo.TbSignVo;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


/**
 * 【请填写功能名称】Mapper接口
 *
 * @author jiajia
 * @date 2023-08-28
 */
@Mapper
public interface TbSignMapper extends BaseMapper<TbSign> {
    /**
     * 考勤统计
     */
    @MapKey("signDate")
    List<Map<String,Object>> signTotalCount(@Param("years") Integer years, @Param("month") Integer month);


    Page<TbSignVo> selectPageSignList(@Param("page") Page<TbSign> build, @Param("ew") QueryWrapper<TbSign> queryWrapper);
}
